package org.example.users.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Users {
    @TableId(type = IdType.AUTO)
    @TableField("user_id")
    private Integer userId;

    private String nickname;

    private String phone;

    private String avatar;

    private String signature;

    @TableField("energy_value")
    private Integer energyValue;

    @TableField("follow_count")
    private Integer followCount;

    @TableField("follower_count")
    private Integer followerCount;

    @TableField("like_received_count")
    private Integer likeReceivedCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("created_time")
    private Date createdTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("updated_time")
    private Date updatedTime;

    @TableField("is_user_agree")
    private Integer isUserAgree;
}
